package com.huakang.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * sickbedroom
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sickbedroom implements Serializable {
    private Integer brid;

    private Integer sbid;

    private Integer srid;

    private static final long serialVersionUID = 1L;

    public Integer getBrid() {
        return brid;
    }

    public void setBrid(Integer brid) {
        this.brid = brid;
    }

    public Integer getSbid() {
        return sbid;
    }

    public void setSbid(Integer sbid) {
        this.sbid = sbid;
    }

    public Integer getSrid() {
        return srid;
    }

    public void setSrid(Integer srid) {
        this.srid = srid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Sickbedroom other = (Sickbedroom) that;
        return (this.getBrid() == null ? other.getBrid() == null : this.getBrid().equals(other.getBrid()))
            && (this.getSbid() == null ? other.getSbid() == null : this.getSbid().equals(other.getSbid()))
            && (this.getSrid() == null ? other.getSrid() == null : this.getSrid().equals(other.getSrid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBrid() == null) ? 0 : getBrid().hashCode());
        result = prime * result + ((getSbid() == null) ? 0 : getSbid().hashCode());
        result = prime * result + ((getSrid() == null) ? 0 : getSrid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", brid=").append(brid);
        sb.append(", sbid=").append(sbid);
        sb.append(", srid=").append(srid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}